﻿namespace Cos.Module.Blog.NHibernate.Test
{
    using System;
    using System.Collections.Generic;

    using Cos.Core.NHibernate;

    using FluentNHibernate.Testing;

    using NUnit.Framework;

    [TestFixture]
    public class ArticleDataModelFixture : BlogFixtureBase
    {
        [Test]
        public void CanMapArticleDataModel()
        {
            new PersistenceSpecification<ArticleDataModel>(Session)
                .CheckProperty(x => x.CreationDate, new DateTime(2011, 01, 03))
                //.CheckReference(x => x.BlogId, this.Blog.Id)
                //.CheckComponentList(x => x.ArticleCultures, new List<ArticleCultureDataModel>())
                //.CheckComponentList(x => x.ArticleSuscribers, new List<ArticleSubscriberDataModel>())
                //.CheckComponentList(x => x.BlogArticleTags, new List<BlogArticleTagDataModel>())
                .VerifyTheMappings();
        }
    }
}
